package com.thoughtworks.bytecode2class.instruction;

import java.util.List;

public class Instruction {

    protected List<Byte> bytes;
    protected int offset;
    private OpCode opCode;

    Instruction(OpCode opCode, List<Byte> bytes, int offset) {
        this.opCode = opCode;
        this.bytes = bytes;
        this.offset = offset;
    }

    public int getOpCode() {
        return opCode.getOpCode();
    }

    public String getMemoni() {
        return opCode.getMemoni();
    }

    public int getParamCount() {
        return opCode.getParamCount();
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public String getParameter() {
        return "";
    }
}